<template>
    <div>
        <!-- 附件 -->
        <template>
            <div class="gcontent">
                <Row class="form_left " style="margin-bottom: 10px;" v-if="!ifedit">
                    <!-- <Col span="5">
                        <component ref="fileModal" :is="'fileModal'" :filesList="filesList" ></component>
                    </Col> -->
                    <Col span="10">
                        <component ref="fileUpload" :fileType="'notice_appendix'" :is="'fileUpload'" v-model="files"></component>
                    </Col>
                </Row>
                <Row v-else>
                    <component ref="fileDownload" :is="'fileDownload'" :files="files"></component>
                </Row>
            </div>
        </template>

    </div>
</template>
<script>
    import fileUpload from './file_uploader'
    import fileModal from './file_modal'
    import fileDownload from './file_download'

    export default {
        components:{
           fileUpload,fileModal,fileDownload
        },
        data () {
            return {

            }
        },
        methods: {
            // getFiles(){
            //     if(!this.ifedit){
            //         return this.$refs.fileUpload.files
            //     }else {
            //         return this.filesList
            //     }
            // }
        },
        props: {
            ifedit: {},
            files: {},
        },
    }
</script>
